Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix installation of defined SQLAlchemy version, bringing back SA13 #492

Merged
merged 2 commits into from
Dec 22, 2022

Conversation

amotl
Copy link
Member

@amotl amotl commented Dec 22, 2022

Problem

A flaw with the SQLAlchemy installer for CI has been discovered when running tests on GH-485. It says »Using SQLAlchemy version: 1.4.45« here 1, while the test matrix slot says it should actually be SA13.

Reason

The order of operations was wrong. So, previously, the process would always install SQLAlchemy 1.4, effectively skipping testing on SQLAlchemy 1.3.

Trivia

Indeed, another fix was needed to compensate for bringing back SA13: 4532ef7 started using the PGCompiler for renderingLIMIT clauses, which apparently received a fix with SA14. So, 36a99ca was needed to make one of our test cases compatible with SA13 again.

Footnotes

  1. https://github.com/crate/crate-python/actions/runs/3754133520/jobs/6378077603#step:4:222

The order of operations was wrong. So, previously, the process would
always install SQLAlchemy 1.4, skipping testing on SQLAlchemy 1.3.
4532ef7 started using the `PGCompiler` for generating limit clauses, to
be more compatible with CrateDB on edge cases.

Apparently, the SQL renderer of `PGCompiler` was slightly changed with
SQLAlchemy 1.4, which removes a redundant space character between table
name and limit clause.

This slipped through because CI did not test on SA13 appropriately at
the time the change was added.
@amotl amotl requested review from hammerhead and seut December 22, 2022 12:22
@amotl amotl marked this pull request as ready for review December 22, 2022 12:22
@amotl amotl merged commit cfd24c8 into master Dec 22, 2022
@amotl amotl deleted the amo/ci-fix-sa-installer branch December 22, 2022 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants